package demo1;

import javax.swing.*;

public class Test1 {
    public static void main(String[] args) {
        MyWindow myWindow = new MyWindow();
    }

}
class MyWindow extends JFrame{

    public MyWindow(){
      setTitle("计算");
        setVisible(true);
        setBounds(400,400,400,200);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

}